package com.example.server;

import javafx.application.Application;
import javafx.application.Platform;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;
import java.text.SimpleDateFormat;

/**
 * @author ht000182
 * @date 2022/3/31 15:21
 */
public class ClientTest extends Application {
    @Override
    public void start(Stage stage) throws IOException {
        Stage anotherStage = new Stage();
        Parent anotherRoot = FXMLLoader.load(getClass().getResource("client-view.fxml"));
        Scene anotherScene = new Scene(anotherRoot);
        anotherStage.setTitle("客户端");
        anotherStage.getIcons().add(new Image("logo.png"));
        anotherStage.setX(500);
        anotherStage.setScene(anotherScene);
        anotherStage.show();
    }

    public static void main(String[] args) {
        launch();
    }
}
